package com.coolwen.spring.aop.java;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.security.acl.AclNotFoundException;

/**
 * @author CoolWen
 * @version 2020-03-26 9:56
 */
public class Testaddition {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(AopConfig.class);
        ICalFibonacci icf = (ICalFibonacci) ctx.getBean("calFibonacci");
        icf.calFibonacciByLoop(40);
        IAdditionAble additionAble = (IAdditionAble) icf;
        ((IAdditionAble) icf).check();
    }
}
